package com.bobby.service;

import com.bobby.pojo.Cart;
import com.bobby.pojo.Order;
import com.bobby.pojo.OrderItem;

import java.sql.SQLException;
import java.util.List;

/**
 * @Description TODO
 * @Date 2020/8/16 15:37
 * @Created wenjunpei
 */
public interface OrderService {
    String createOrder(Cart cart,Integer userId) throws SQLException;
    List<Order> showAllOrders() throws SQLException;
    void sendOrder(String orderId) throws SQLException;
    List<OrderItem> showOrderDetail(String orderId) throws SQLException;
    List<Order> showMyOrders(Integer userId) throws SQLException;
    void receiveOrder(String orderId) throws SQLException;
}
